| От | samsom, debra |
|---|---|
| Тема | Multiple Primary Keys |
| Дата | |
| Msg-id | 7a4ddaa6040b2907d2@[10.1.1.200] обсуждение |
| Ответы |
Re: Multiple Primary Keys
|
| Список | pgsql-novice |
Currently I have a table on Microsoft Sequel Server that I wish to port over to Postgresql. This table has four primary keys and it's the combination of the four fields that make the record unique. I have created the table in Postgresql using this in my create.
CONSTRAINT "attachments_pkey" PRIMARY KEY ("docn","issue","docna","issuea"));"
The table gets created with four primary keys, but when I copy in the data I get the following error..
"Cannot insert a duplicate key into unique index attachments_pkey"
Any ideas??
Debra Samsom
Senior Business Systems Analyst
Bristol Aerospace Ltd.
(204) 775-8331 3402
dsamsom@bristol.ca
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера